//
//  CHWorkspaceAdditions.m
//  POBase
//
//  Created by Pieter Omvlee on 6/2/08.
//  Copyright 2008 Bohemian Coding. All rights reserved.
//

#import "CHWorkspaceAdditions.h"


@implementation NSWorkspace (CHWorkspaceAdditions)

- (BOOL)moveFileToTrash:(NSString *)file
{
  return [[NSWorkspace sharedWorkspace]
          performFileOperation:NSWorkspaceRecycleOperation
                        source:[file stringByDeletingLastPathComponent]
                   destination:@""
                         files:[NSArray arrayWithObject:[file lastPathComponent]] tag:NULL];
  
}

@end